package com.yiban.demo.ShuoShuo.Event.ShuoShuoCommnetEvent;

import com.yiban.demo.ShuoShuo.Entity.ShuoShuoComment;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class StandardShuoShuoCommentEvent extends ApplicationEvent {
    private ShuoShuoComment shuoShuoComment;

    public StandardShuoShuoCommentEvent(Object source, ShuoShuoComment shuoShuoComment) {
        super(source);
        this.shuoShuoComment = shuoShuoComment;
    }
    public Integer getShuoShuoId(){
        return shuoShuoComment.getShuoShuoId();
    }
}
